package com.love.poetry.infrastructure.persist.security;

import com.love.poetry.domain.security.User;
import com.youboy.core.orm.Page;

public interface UserRepository {

	User lazyGet(String id);

	User queryUniqueByUsername(String username);

	Page<User> queryPage(Page<User> page);

	void save(User entity);

	void delete(User entity);

	void update(User entity);

	void markLocked(String[] ids);

	void markNotLocked(String[] ids);

	boolean checkUserAuthority(String username);
	
	boolean existsByUsername(String username);
	
}